import 'package:flutter/material.dart';

class HeaderTitleWidget extends StatelessWidget {

  final String title;
  final Function onTab;
  final bool isSelect;
  HeaderTitleWidget(this.title, this.isSelect, this.onTab);

  @override
  Widget build(BuildContext context) {
    return InkWell(
      onTap: onTab,
      child: Container(
        margin: EdgeInsets.only(left: 10, right: 10),
        decoration: BoxDecoration(
          border: isSelect ? Border(bottom: BorderSide(color: Colors.red, width: 2)) : null
        ),
        padding: EdgeInsets.symmetric(vertical: 5),
        child: Text(title, style: TextStyle(fontWeight: FontWeight.w500, fontSize: 18, color: Colors.white, height: 1.1),),
      ),
    );
  }

}
